package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.gateway.oaflow.xirtrade.TOaFlowXirTradeConfigUserRelated;
import com.glsc.ngateway.common.api.oaflow.dto.xirtrade.TOaFlowXirTradeConfigUserRelatedDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @Author: xc
 * @Desc: domin到dto转换辅助类
 */
@Mapper(componentModel = "spring")
public interface TOaFlowXirTradeConfigUserRelatedMapper {
    TOaFlowXirTradeConfigUserRelatedMapper INSTANCE = Mappers.getMapper(TOaFlowXirTradeConfigUserRelatedMapper.class);

    TOaFlowXirTradeConfigUserRelatedDto domain2dto(TOaFlowXirTradeConfigUserRelated domain);

    List<TOaFlowXirTradeConfigUserRelatedDto> domain2dto(List<TOaFlowXirTradeConfigUserRelated> domain);

    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    TOaFlowXirTradeConfigUserRelated dto2domain(TOaFlowXirTradeConfigUserRelatedDto dto);

    List<TOaFlowXirTradeConfigUserRelated> dto2domain(List<TOaFlowXirTradeConfigUserRelatedDto> dto);
}
